package com.mtw.bbs.reply.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.mtw.bbs.reply.pojo.entity.ReplySubject;
import com.mtw.bbs.reply.pojo.form.ReplyForm;

import java.util.Collection;
import java.util.Map;


/**
 * 评论区
 *
 */
public interface ReplySubjectService extends IService<ReplySubject> {


    /**
     * 获取或新增评论区
     */
    ReplySubject  saveOrGetReplySubject(ReplyForm form);


    /**
     * 获取评论区
     */
    ReplySubject  getReplySubject(String objectType,String objectId);


    /**
     * 获取评论区评论数量
     */
    Integer  getRelyCount(String objectType,String objectId);


    /**
     * 获取评论区评论数量
     */
    Map<String,Integer> getRelyCountByIds(String objectType, Collection<String> objectIds);


}

